import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/brandofficialAccount',
  component: Layout,
  redirect: '/brandofficialAccount/index',
  name: 'brandofficialAccount',
  meta: {
    title: '品牌官',
    icon: 'material-symbols-light:featured-seasonal-and-gifts',
  },
  children: [
    {
      path: 'index',
      name: 'brandofficialAccountIndex',
      component: () => import('@/views/brandofficialAccount/index.vue'),
      meta: {
        title: '人员列表',
      },
    },
    {
      path: 'detail',
      name: 'brandofficialAccountDetail',
      component: () => import('@/views/brandofficialAccount/detail.vue'),
      meta: {
        title: '人员配置',
        menu: false,
        activeMenu: '/brandofficialAccount/index',
      },
    },
    {
      path: 'list',
      name: 'brandofficialFenrunList',
      component: () => import('@/views/brandofficialAccount/fenrunList.vue'),
      meta: {
        title: '分润记录',
      },
    },
    {
      path: 'listDetail',
      name: 'brandofficialFenrunDetail',
      component: () => import('@/views/brandofficialAccount/fenrunDetail.vue'),
      meta: {
        title: '分润明细',
        menu: false,
        activeMenu: '/brandofficialAccount/list',
      },
    },
  ],
}

export default routes
